<html>
<head><meta charset="utf-8"><title>BytePos size · t-compiler/wg-diagnostics · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/index.html">t-compiler/wg-diagnostics</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/BytePos.20size.html">BytePos size</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="210152493"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/BytePos%20size/near/210152493" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gus Wynn <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/BytePos.20size.html#210152493">(Sep 15 2020 at 16:24)</a>:</h4>
<p>I see that BytePos is a global index that is fixed to u32. does that mean that a crate can't have more than 4gb of text?</p>



<a name="210153963"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/BytePos%20size/near/210153963" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/BytePos.20size.html#210153963">(Sep 15 2020 at 16:35)</a>:</h4>
<p>I think so, but I'd not expect such a program to compile this century anyways (if it's not whitespace or something)</p>



<a name="210156875"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/BytePos%20size/near/210156875" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jubilee <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/BytePos.20size.html#210156875">(Sep 15 2020 at 16:56)</a>:</h4>
<p>I kind of want to see a 4GB crate now, just to test...</p>



<a name="210157600"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/BytePos%20size/near/210157600" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gus Wynn <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/BytePos.20size.html#210157600">(Sep 15 2020 at 17:01)</a>:</h4>
<p>Yeah I couldn't find exactly how the error manifests, but I <em>think</em> its an ICE</p>



<a name="210217706"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/BytePos%20size/near/210217706" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/BytePos.20size.html#210217706">(Sep 16 2020 at 03:06)</a>:</h4>
<p>both clang and gcc have similar restriction on file size.</p>



<a name="210218588"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/BytePos%20size/near/210218588" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jubilee <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/BytePos.20size.html#210218588">(Sep 16 2020 at 03:26)</a>:</h4>
<p>right<br>
I kind of want to see how many bytes Rust can actually compile and how long it would take just for like... the insidious knowledge, not necessarily because it's bad that we can "only" compile 4GB of crate.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>